package gui;

import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
	
//		Transfer to user screen
public class TransferToUser extends JPanel {

	private JLabel lblCopyrightTtu;
	private JPanel panelNumPadTtu;
	private JLabel labelTtu;
	private JButton button6Ttu;
	private JButton button4Ttu;
	private JButton button5Ttu;
	private JButton button9Ttu;
	private JButton button7Ttu;
	private JButton button8Ttu;
	private JButton button1Ttu;
	private JButton button2Ttu;
	private JButton button3Ttu;
	private JButton btnCancelTtu;
	private JButton button0Ttu;
	private JButton buttonOKTtu;
	private JButton btnTitleTtu;
	private JButton btnDeleteTtu;
	private JButton btnCommaTtu;
	private JTextField txtAmountTtu;
	private JTextField txtEmailTo;
	private JLabel lblTheEmailYou;
	private JLabel lblError;
	private JLabel lblAmountError;

	public TransferToUser() {

		setBounds(0, 0, 624, 921);
		setBackground(new Color(135, 206, 235));
		setLayout(null);

		Icon logo = new ImageIcon(getClass().getResource(
				"LOGOHighassfuck2.0.png"));

		lblCopyrightTtu = new JLabel(
				"BCBS Systems, the \"Bitcoin\" logo, and all related systems are copyright Copenhagen Business School and its affiliates ");
		lblCopyrightTtu.setForeground(new Color(128, 128, 128));
		lblCopyrightTtu.setFont(new Font("Calibri Light", Font.PLAIN, 8));
		lblCopyrightTtu.setBounds(113, 1039, 458, 14);
		add(lblCopyrightTtu);

		panelNumPadTtu = new JPanel();
		panelNumPadTtu.setLayout(null);
		panelNumPadTtu.setBackground(new Color(220, 220, 220));
		panelNumPadTtu.setBounds(0, 427, 624, 493);
		add(panelNumPadTtu);

		labelTtu = new JLabel(
				"BCBS Systems, the \"Bitcoin\" logo, and all related systems are copyright Copenhagen Business School and its affiliates ");
		labelTtu.setForeground(Color.GRAY);
		labelTtu.setFont(new Font("Calibri Light", Font.PLAIN, 8));
		labelTtu.setBounds(113, 1039, 458, 14);
		panelNumPadTtu.add(labelTtu);

		button9Ttu = new JButton("9");
		button9Ttu.setBounds(416, 198, 208, 99);
		panelNumPadTtu.add(button9Ttu);
		button9Ttu.setForeground(Color.DARK_GRAY);
		button9Ttu.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button7Ttu = new JButton("7");
		button7Ttu.setBounds(0, 198, 208, 99);
		panelNumPadTtu.add(button7Ttu);
		button7Ttu.setForeground(Color.DARK_GRAY);
		button7Ttu.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button8Ttu = new JButton("8");
		button8Ttu.setBounds(208, 198, 208, 99);
		panelNumPadTtu.add(button8Ttu);
		button8Ttu.setForeground(Color.DARK_GRAY);
		button8Ttu.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button4Ttu = new JButton("4");
		button4Ttu.setBounds(0, 99, 208, 99);
		panelNumPadTtu.add(button4Ttu);
		button4Ttu.setForeground(Color.DARK_GRAY);
		button4Ttu.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button5Ttu = new JButton("5");
		button5Ttu.setBounds(208, 99, 208, 99);
		panelNumPadTtu.add(button5Ttu);
		button5Ttu.setForeground(Color.DARK_GRAY);
		button5Ttu.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button6Ttu = new JButton("6");
		button6Ttu.setBounds(416, 99, 208, 99);
		panelNumPadTtu.add(button6Ttu);
		button6Ttu.setForeground(Color.DARK_GRAY);
		button6Ttu.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button1Ttu = new JButton("1");
		button1Ttu.setBounds(0, 0, 208, 99);
		panelNumPadTtu.add(button1Ttu);
		button1Ttu.setForeground(Color.DARK_GRAY);
		button1Ttu.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button2Ttu = new JButton("2");
		button2Ttu.setBounds(208, 0, 208, 99);
		panelNumPadTtu.add(button2Ttu);
		button2Ttu.setForeground(Color.DARK_GRAY);
		button2Ttu.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button3Ttu = new JButton("3");
		button3Ttu.setBounds(416, 0, 208, 99);
		panelNumPadTtu.add(button3Ttu);
		button3Ttu.setForeground(Color.DARK_GRAY);
		button3Ttu.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		btnCancelTtu = new JButton("Cancel");
		btnCancelTtu.setBounds(0, 396, 312, 97);
		panelNumPadTtu.add(btnCancelTtu);
		btnCancelTtu.setForeground(new Color(255, 0, 0));
		btnCancelTtu.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		button0Ttu = new JButton("0");
		button0Ttu.setBounds(208, 297, 208, 99);
		panelNumPadTtu.add(button0Ttu);
		button0Ttu.setForeground(Color.DARK_GRAY);
		button0Ttu.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		buttonOKTtu = new JButton("OK");
		buttonOKTtu.setBounds(311, 396, 312, 97);
		panelNumPadTtu.add(buttonOKTtu);
		buttonOKTtu.setForeground(new Color(0, 128, 0));
		buttonOKTtu.setFont(new Font("Calibri Light", Font.PLAIN, 35));

		btnDeleteTtu = new JButton("<= Del");
		btnDeleteTtu.setForeground(Color.DARK_GRAY);
		btnDeleteTtu.setFont(new Font("Calibri Light", Font.PLAIN, 30));
		btnDeleteTtu.setBounds(0, 297, 208, 99);
		panelNumPadTtu.add(btnDeleteTtu);

		btnCommaTtu = new JButton(",");
		btnCommaTtu.setForeground(Color.DARK_GRAY);
		btnCommaTtu.setFont(new Font("Calibri Light", Font.PLAIN, 35));
		btnCommaTtu.setBounds(416, 297, 208, 99);
		panelNumPadTtu.add(btnCommaTtu);

		btnTitleTtu = new JButton("Bitcoin transaction");
		btnTitleTtu.setBackground(Color.LIGHT_GRAY);
		btnTitleTtu.setEnabled(false);
		btnTitleTtu.setForeground(new Color(0, 0, 0));
		btnTitleTtu.setFont(new Font("Calibri Light", Font.BOLD, 35));
		btnTitleTtu.setBounds(0, 0, 624, 51);
		add(btnTitleTtu);

		txtAmountTtu = new JTextField();
		txtAmountTtu.setForeground(Color.DARK_GRAY);
		txtAmountTtu.setFont(new Font("Calibri Light", Font.BOLD, 70));
		txtAmountTtu.setHorizontalAlignment(SwingConstants.CENTER);
		txtAmountTtu.setColumns(1);
		txtAmountTtu.setBounds(0, 204, 624, 224);
		txtAmountTtu.setEditable(false);
		add(txtAmountTtu);

		txtEmailTo = new JTextField();
		txtEmailTo.setFont(new Font("Calibri Light", Font.PLAIN, 25));
		txtEmailTo.setBounds(150, 117, 322, 51);
		add(txtEmailTo);
		txtEmailTo.setColumns(10);

		lblTheEmailYou = new JLabel("The email you wish to transfer to:");
		lblTheEmailYou.setFont(new Font("Calibri Light", Font.PLAIN, 25));
		lblTheEmailYou.setBounds(140, 78, 341, 31);
		add(lblTheEmailYou);

		lblError = new JLabel("Incorrect User/Email. Please try again.");
		lblError.setForeground(new Color(128, 0, 0));
		lblError.setHorizontalAlignment(SwingConstants.CENTER);
		lblError.setFont(new Font("Calibri Light", Font.PLAIN, 25));
		lblError.setBounds(103, 80, 423, 26);
		lblError.setVisible(false);
		add(lblError);

		lblAmountError = new JLabel(
				"Or your balance is 2 low 2 transfer, Please deposit first.");
		lblAmountError.setForeground(new Color(128, 0, 0));
		lblAmountError.setHorizontalAlignment(SwingConstants.CENTER);
		lblAmountError.setFont(new Font("Calibri Light", Font.PLAIN, 25));
		lblAmountError.setBounds(27, 170, 576, 31);
		lblAmountError.setVisible(false);
		add(lblAmountError);

	}

	public JLabel getLblAmountError() {
		return lblAmountError;
	}

	public JButton getTtu0() {
		return button0Ttu;
	}

	public JButton getTtu1() {
		return button1Ttu;
	}

	public JButton getTtu2() {
		return button2Ttu;
	}

	public JButton getTtu3() {
		return button3Ttu;
	}

	public JButton getTtu4() {
		return button4Ttu;
	}

	public JButton getTtu5() {
		return button5Ttu;
	}

	public JButton getTtu6() {
		return button6Ttu;
	}

	public JButton getTtu7() {
		return button7Ttu;
	}

	public JButton getTtu8() {
		return button8Ttu;
	}

	public JButton getTtu9() {
		return button9Ttu;
	}

	public JButton getTtuCancel() {
		return btnCancelTtu;
	}

	public JButton getTtuOK() {
		return buttonOKTtu;
	}

	public JButton getTtuComma() {
		return btnCommaTtu;
	}

	public JButton getTtuDel() {
		return btnDeleteTtu;
	}

	public JTextField getTtuAmount() {
		return txtAmountTtu;
	}

	public JTextField getTxtEmailTo() {
		return txtEmailTo;
	}

	public JLabel getLblError() {
		return lblError;
	}

	public JLabel getLblTheEmailYou() {
		return lblTheEmailYou;
	}

	public void addActionListener(ActionListener squirtle) {
		button0Ttu.addActionListener(squirtle);
		button1Ttu.addActionListener(squirtle);
		button2Ttu.addActionListener(squirtle);
		button3Ttu.addActionListener(squirtle);
		button4Ttu.addActionListener(squirtle);
		button5Ttu.addActionListener(squirtle);
		button6Ttu.addActionListener(squirtle);
		button7Ttu.addActionListener(squirtle);
		button8Ttu.addActionListener(squirtle);
		button9Ttu.addActionListener(squirtle);
		buttonOKTtu.addActionListener(squirtle);
		btnCancelTtu.addActionListener(squirtle);
		btnCommaTtu.addActionListener(squirtle);
		btnDeleteTtu.addActionListener(squirtle);
	}

}
